﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xinkui.Common.FileAction
{
    public interface IFileAction
    {
        int CreateAttachment(FileEntity fEntity);

        int GetNewFileID();

        FileEntity GetFileEntityByID(int attachID);

        FileEntity GetFileEntity(int sourceID, int sourceType);

        int UpdateAttachment(FileEntity fEntity);

        int DeleteAttachment(int attachID, int sourceID, int sourceType);
    }
}
